package off;


/**
 * @author lj
 * @Description: 三位数反转
 * @date 2020-10-23 21:00
 * @QQ 851477108
 */


public class sanFZ {
    public static void main(String[] args) {
        int a = 123;
        int fz = fz(a);
        System.out.println(fz);

    }

    private static int fz(int a) {
        StringBuffer sb = new StringBuffer();
        sb.append(a);
        String s = sb.reverse() + "";
        int result = Integer.parseInt(s);
        return result;
    }


}
